package com.xiaoxu.spzx.manager;

import com.xiaoxu.spzx.log.annotation.EnableLogAspect;
import com.xiaoxu.spzx.manager.properties.MinioProperties;
import com.xiaoxu.spzx.manager.properties.UserAuthProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * ClassName:MangerApplication
 * Description:
 *
 * @author: 徐廷泉
 * @Create 2024/1/14 10:33
 */
@EnableLogAspect
@SpringBootApplication
@ComponentScan(basePackages = {"com.xiaoxu"})
@EnableConfigurationProperties(value = {MinioProperties.class, UserAuthProperties.class})
@EnableScheduling //在启动类上添加**@EnableScheduling**注解开启定时任务功能
public class MangerApplication {


    public static void main(String[] args) {
        SpringApplication.run(MangerApplication.class,args);
    }
}
